package com.baizhi.chario;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

/**
 * PrintWriter具有自动行刷新的缓冲字符输出流   --------打印流
 */
public class PrintWriterDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintWriter pw= new PrintWriter("./javase_io/pw.text");

        pw.println("李白乘舟将欲行");
        pw.println("忽闻岸上踏歌声");
        pw.println("桃花潭水深千尺");
        pw.println("不及汪伦送我情");

        pw.close();

    }
}
